//
//  UITableViewCell+Updater.h
//  ylh-app-primary-ios
//
//  Created by YueWen on 2018/11/28.
//  Copyright © 2018 巨商汇. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITableViewCell (Updater)



/**
 Cell数据填充
 
 @param dataDict 数据字典
 @param indexPath cell的indexpath
 @param delegate 通过delegate定位VC
 */
- (void)updateViewByData:(nullable NSDictionary *)dataDict
               indexPath:(NSIndexPath *)indexPath
            cellDelegate:(id)delegate;



/**
 *  用于动态计算高度
 *
 *  @param dataDict  当前Page的PageItems
 *  @param indexPath UITableViewCell的IndexPath
 */
- (CGFloat)prepareHeightByDict:(nullable NSDictionary *)dataDict
                     indexPath:(NSIndexPath *)indexPath;

@end

NS_ASSUME_NONNULL_END
